/*
 * @Descripttion: 企业信息api
 * @version: 1.0
 * @Author: 狸猫
 * @Date: 2023-12-27 09:09:21
 * @LastEditors: 狸猫
 * @LastEditTime: 2023-12-27 13:41:15
 */
import request from '@/utils/request'

// 查询企业信息
export function getEnterprise(query) {
  return request({
    url: '/enterprise/department/department',
    method: 'get',
    params: query
  })
}

// 获取电子签信息
export function electronicVisaInfo(query) {
  return request({
    url: '/enterprise/department/department/electronicVisaInfo',
    method: 'get',
    params: query
  })
}
// 微信商户号信息
export function WechatAccount(query) {
  return request({
    url: '/enterprise/department/WechatAccount',
    method: 'get',
    params: query
  })
}
// 修改企业信息
export function department(data) {
  return request({
    url: '/enterprise/department/department',
    method: 'put',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: data
  })
}
// 修改微信商户号
export function putWechatAccount(data) {
  return request({
    url: '/enterprise/department/WechatAccount',
    method: 'put',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: data
  })
}
// 修改岗位
export function updatePost(data) {
  return request({
    url: '/system/post',
    method: 'put',
    data: data
  })
}

// 删除岗位
export function delPost(postId) {
  return request({
    url: '/system/post/' + postId,
    method: 'delete'
  })
}
